-- GENERATED SPELL FOR [Vile Fin Tidecaller] --


function spell0_1958(pUnit, Event) --@Frost Nova,Self--
pUnit:FullCastSpellOnTarget(11831,pUnit)
pUnit:RegisterEvent('Sorts_1958', 8349, 1)
end

function Sorts_1958(pUnit, Event)
local choix_sorts_1958 = math.random(0, 0)
if choix_sorts_1958 == 0 then
pUnit:RegisterEvent('spell0_1958', 1, 1)
end
end

function mob1958_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_1958', math.random(1500, 3000), 1)
end

function mob1958_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob1958_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob1958_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(1958, 1, 'mob1958_Action')
RegisterUnitEvent(1958, 2, 'mob1958_Leave')
RegisterUnitEvent(1958, 3, 'mob1958_Kill')
RegisterUnitEvent(1958, 4, 'mob1958_Die')
